package org.spring.springboot.app.file.domain.po;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;
@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "resource_file_shard")
public class ResourceFileShardPO {
    /**
     * ID
     */
    @Id
    private String id;

    /**
     * 文件ID
     */
    @Column(name = "file_id")
    private String fileId;

    /**
     * 文件名称
     */
    @Column(name = "shard_name")
    private String shardName;

    /**
     * 文件tag
     */
    @Column(name = "shard_etag")
    private String shardEtag;

    /**
     * 总分片数量
     */
    @Column(name = "shard_chunks")
    private Integer shardChunks;

    /**
     * 当前为第几块分片
     */
    @Column(name = "shard_chunk")
    private Integer shardChunk;

    /**
     * 分片大小
     */
    @Column(name = "shard_size")
    private Long shardSize;

}